package com.example.cloudstorage;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.HeaderMap;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

/**
 * Created by Administrator on 2017/1/17.
 */

public interface UserInterServes {
    @GET("ser")
    public Call<String> regUser3(@HeaderMap Map<String,String> Headers, @QueryMap Map<String,String> params);
//    public Call<String> regUser(@retrofit2.http.Header("aaa") String aaa);
    @GET("ser")
    public Call<String> regUser(@QueryMap Map<String,String> params);
//    public Call<String> regUser(@Query("username") String username, @Query("userpwd") String userpwd);//指明干什么事情 注册一个用户 传入内部参数用户名和密码
    @POST("ser")
    @FormUrlEncoded  //转换数据编码上传    常见编码base64
    public Call<String> regUser1(@FieldMap Map<String,String> params);
}
